package com.victor.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.HotTagDao;
import com.victor.entity.HotTag;
import com.victor.service.HotTagService;

@Service
public class HotTagServiceImpl implements HotTagService {

	@Autowired
	private HotTagDao dao;

	@Override
	public boolean batchDelete(int[] ids) {
		return dao.batchDelete(ids) > 0 ? true : false;
	}

	@Override
	public boolean insert(HotTag record) {
		return dao.insert(record) > 0 ? true : false;
	}

	@Override
	public HotTag findById(Integer tId) {
		return dao.findById(tId);
	}

	@Override
	public boolean update(HotTag record) {
		return dao.update(record) > 0 ? true : false;
	}

	@Override
	public HotTag findByContext(String name,String pictype) {
		return dao.findByContext(name,pictype);
	}

	@Override
	public boolean addClick(Integer tId) {
		return dao.addClick(tId) > 0 ? true : false;
	}

	@Override
	public List<HotTag> findByType(String pictype) {
		return dao.findByType(pictype);
	}

}
